SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
ark_root=$(dirname $(dirname $(dirname $(dirname "$SCRIPT_DIR"))))
arkcompiler_tool_path=$(dirname "$ark_root")/arkcompiler_tool
ark_guard_root=$ark_root/arkcompiler/runtime_core/ark_guard
abckit_wrapper_root=$ark_guard_root/abckit_wrapper

# Modify the following configuration according to the abc to be run
abc_file=$ark_guard_root/tests/build/ut/obfuscator/code_sample/enum_demo.abc
obf_abc_file=$ark_guard_root/tests/build/ut/obfuscator/code_sample/enum_demo.updated.abc
module_name=enum_demo
func_name=main
obf_module_name=enum_demo
obf_func_name=main

echo "------------------- before obfuscated -------------------"
python $abckit_wrapper_root/script/run.py --arkcompiler_tool_path $arkcompiler_tool_path --abc_file $abc_file --module_name $module_name --func_name $func_name

echo "------------------- after obfuscated -------------------"
python $abckit_wrapper_root/script/run.py --arkcompiler_tool_path $arkcompiler_tool_path --abc_file $obf_abc_file --module_name $obf_module_name --func_name $obf_func_name
